package com.summer.safe.controller.system;

import com.summer.safe.config.annotation.ResultWrapper;
import com.summer.safe.config.result.ResultCode;
import com.summer.safe.utils.UserUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


/**
 * 系统
 * @author lm
 */
@Controller
@RequestMapping("/sys/system")
public class SystemController {

    /**
     * 清除当前用户的信息缓存
     */
    @RequestMapping("/clearCache")
    @ResultWrapper(ResultCode.CLEARCACHE)
    public  void clearCache() {
        UserUtils.clearCache();

    }


}
